%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%载入常用的packages
\usepackage{url} %这个我也不多说了
\usepackage{fontspec,xltxtra,xunicode} %最新的mactex都有
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{verbatim}
\usepackage[usenames]{color}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{indentfirst}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{color}
\usepackage{bm}
\usepackage{array}
\usepackage{tikz}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{enumitem}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%使表格美观
%\usepackage{array}
%\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
%\newcolumntype{N}{@{}m{0pt}@{}}
%\setlength\extrarowheight{3pt}
%\renewcommand{\tablename}{表}
%\renewcommand{\figurename}{图}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%把“摘要”两字写成中文
\renewcommand{\abstractname}{摘要}

%%把“参考文献”四字写成中文
%\renewcommand{\refname}{参考文献}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%设置文档的字体
\defaultfontfeatures{Mapping=tex-text}
\setromanfont{Heiti SC} %设置中文字体
\XeTeXlinebreaklocale “zh”
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt %文章内中文自动换行，可以自行调节

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%总共一页时，页面能达到的最上边界
%\addtolength{\textheight}{7cm}
%\addtolength{\voffset}{-4.5cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%调整目录的行间距
%\usepackage{titletoc}
%%\titlecontents{section}[0pt]{\addvspace{2pt}\filright}
%%              {\contentspush{\thecontentslabel\ }}
%%              {}{\titlerule*[8pt]{.}\contentspage}
%\titlecontents{section}[0pt]{\addvspace{5pt}\filright}
%              {\contentspush{\thecontentslabel\ }}
%              {}{\titlerule*[16pt]{--}\contentspage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%调整章节标题的行前和行后的距离
\usepackage{titlesec}
%\titlespacing*{\section}
%{0pt}{5.5ex plus 1ex minus .2ex}{4.3ex plus .2ex}
%\titlespacing*{\subsection}
%{0pt}{5.5ex plus 1ex minus .2ex}{4.3ex plus .2ex}
\titlespacing*{\section}
  {0pt}{0.7\baselineskip}{0.7\baselineskip}
\titlespacing*{\subsection}
  {0pt}{0.7\baselineskip}{0.7\baselineskip}
\titlespacing*{\subsubsection}
  {0pt}{0.7\baselineskip}{0.7\baselineskip}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 给数字或字母加圆圈
%\newcommand*\mycirc[1]{%
%   \begin{tikzpicture}
%%     \node[draw,circle,inner sep=1pt] {#1};
%     \node[draw, circle, inner sep=0pt] {#1};
%   \end{tikzpicture}}
   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%页面的高度与宽度、上边界与左边界-------正常打印边界
\addtolength{\textheight}{4.5cm}
\addtolength{\voffset}{-2.4cm}
\addtolength{\textwidth}{3.7cm}
\addtolength{\hoffset}{-2.2cm}   
  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
   
   